import React from 'react';
import PropTypes from 'prop-types';

class NavBarProps extends React.Component {
    render() {
        const {leftSlot, centerSlot, rightSlot} = this.props;
        return (
            <div>
                <div>PropsLeft：{leftSlot}</div>
                <div>PropsCenter：{centerSlot}</div>
                <div>PropsRight：{rightSlot}</div>
            </div>
        );
    }
}

NavBarProps.propTypes = {
    leftSlot: PropTypes.element,
    centerSlot: PropTypes.element,
    rightSlot: PropTypes.element
}

export default NavBarProps